package cn.org.itool.ws.framework.netty.message;

import cn.org.itool.ws.framework.constent.FtMessageTypeEnum;

public class BizWsMessageBuilder {

    public static BizWsMessage push(String route, Object body){
        BizWsMessage message = new BizWsMessage();
        message.setRoute(route);
        message.setType(FtMessageTypeEnum.SERVER_PUSH.getCode());
        message.setBody(body);
        return message;
    }
}
